body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    text-align: center;
    color: #333;
}

.search-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}


.search-section input[type="text"] {
    position: relative; top: 0; right: -930px; 
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}


.search-section button {
    padding: 10px 20px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-section button:hover {
    background-color: #4cae4c;
}

.student-list table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}


.student-list th, .student-list td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.student-list th {
    background-color: #f2f2f2;
}
.student-list td button {
    padding: 5px 10px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative; top: 0; right: -100px; 
}

.student-list .pagination-section {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.student-list button {
    padding: 7px 15px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
    width: 90px;
    height: 30px;
}

.pagination-section button, .pagination-section span {
    padding: 10px 20px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    position: relative; top: 0; right: -960px; 
}

.pagination-section button:hover {
    background-color: #4cae4c;
}

.add-student form {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.add-student label {
    margin-bottom: 10px;
}

.add-student input[type="text"] {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.add-student button {
    padding: 10px 20px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.add-student button:hover {
    background-color: #4cae4c;
}

/* 隐藏弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

/* 弹窗内容样式 */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 40%;
}

/* 关闭按钮样式 */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}